Fix traceback print on None for |location|

This happens when the user invokes a GoTo* command on a file with no compilation
flags.