cmds: check for errors when visualizing history

Catch exceptions when launching a history browser so that the user can
know when a browser has not been configured.

Closes #226

Reported-by: Benoît Nouyrigat @bnouyrigat via github.com
Signed-off-by: David Aguilar <davvid@gmail.com>