Fix a NullPointerException in LoadProjectTask