Refactor: pengine: reduce code duplication when unpacking location constraints
Certain error conditions were checked by both unpack_location() and
unpack_location_tags(). Now, it's done only in the latter (which the
former calls and checks).
This also simplifies the code to make it more readable.