Ensure location is valid before trying to fetch
Prevent accidental wildcarding.
Merge pull request #1107 from edx/dhm/bug_attrs

Ensure location is valid before trying to fetch