Fix bug which leads to exception for empty search

Now an empty inbox leads to search for all yet-to-be-done task (as how
it is before Command pattern is implemented)