check string length of file name before attempting to copy

File names CAN be shorter than 4 characters if they don't have a 3
character file name extension and the filter was selected.

Change-Id: Ic25bdf44cd44d48313c748525e75318e05240e8e