Add debug msg to location parser, fix matcher rejected ids

If no ids are rejected, .where("whatever.id NOT IN (?)", []) will
translate to "NOT IN (NULL)" which will break the query.
Removes debug msg, fixes ensure_can_modify