Fix bug that prevents users from creating a new oauth application (#1706)

4 jobs for 1706-fix-application-creation in 7 minutes and 8 seconds (queued for 25 seconds)