fixed issue with ModelResource.get_item_by_id() on queries with join()