(ProjectRasterFile): Make sure the function doesn't return NULL without first setting a Python Error.