Catch error when navigating in cmdline window

Closes #3 - Mappings break in command-line window