Added exception handling for new project with no files open

Added an exception handler for catching filename exceptions when opening
new projects. Most times the new projects don't have any files open, so
this filename comes back as null.