Handle querying for a region with a nil code. Fixes #131.