Fix: API 500 error when project does not exists

This error happens when I push to a nonexistent project（typing error of a project's ssh url）. Maybe you can't see it at any page, bug it will be in the log file.