Don't assume that file has an extension.
Fix for bug 3260260 - RT crashes when adding file reference to file with no extension.
Authored by: jimwinston 2011-03-30
Parent: [r982]
Child: [r984]