Core/ObjectMgr: Fix a logic error in GetEquipmentInfo

Thanks @Shauren