Fixes bug where empty list of todo will also display.