Added a new way of removing patterns that may reference a view mode that no longer exists. Changed the pattern check in the hook_menu_alter to be entity specific.