Fix stack trace on new project page.
Fix stack trace on new project page.

Add an explicit test for the type of $project because it is a string
if the project is new, and an array if it isn't.

charliemeyer/geni-portal,tcmitchell/geni-portal,charliemeyer/geni-portal,tcmitchell/geni-portal,tcmitchell/geni-portal,tcmitchell/geni-portal,charliemeyer/geni-portal,tcmitchell/geni-portal,charliemeyer/geni-portal,charliemeyer/geni-portal