Fixed logic for no entries

Made sure that if there are no entries, no errors are displayed, and
the footer is still available.