Add a file pointer check.

Hi!

If the function "LoaderFile::load" can't load the file, than the program is ran in a segmentation fault. I add a check for the file pointer now.

And I remove some whitespaces.