Fix for inspecting variables with underscores

In a variable containing underscores, pressing alt+a with the cursor before the last underscore searches for an incomplete variable name due to the way sublime word expansion works. If this continues to be a problem I might look at better ways to find the end of the variable name.

Fix also tweaks the status bar update to not throw an error when the query is None.