additional NULL pointer check

we should not pass NULL directory to nemo_file_new_from_filename