Fixes rendering of 404 in work packages.

The rendering of 404 would result in a 500 being thrown when deciding on
the current menu item, which subsequently needs a project to ger a new
work package. There now is a fallback on issues.