Fix error checking for menus the current_user_can't see.

Fixes #406