Fix another null pointer exception when location is unknown

Same caveats as #20