Clearer error when calling objectMembers with a invalid object id