Fix ugly breaking when no batch actions are defined.