fix for menus defined to be active if location is a library only and no controller has been specified