Print more helpful message when there are no matches
Adjust printing to avoid segfault