#648 empty libraries will not appear

Simple fix. Please test first, don't have any testing environment.
For further improvement: Remove the empty? check from the view and check it in the controller.