fix display of error message when no documents left to see