Fix two bugs:

Creating/editing non-issue_priority enums was failing
Giving an issue priority an empty name was not giving a useful error (500 rather than flash).