Catch NPEs when calling getBinaryOnlyMetadataFile