#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.
Merge pull request #651 from dennym/patch-1

fixes #648 empty libraries will not appear