Replace "If project.thumbnail" with "try project.thumbnail."

Very strange behavior. It's like it's not recognizing that the forignkey is a Nonetype