Fixed possible crash in ActionManager::unregisterCommandsForContext()
when there are no command registered in the action manager.