Editing user prefs when no project exists triggers error

It was not possible to update a user's preferences when no projects
exists (e.g. right after installation), Mantis triggered application
error 20.

We now omit 'All projects' from the default project selection list only
when the project count is 1.

Fixes #16420