Fixed crash in FilePath by doing a null check in the destructor.