Fixed hook_menu_local_tasks_alter API differences.