Removes empty controllers.