Fix argument checking in /inventory, /enderchest

ArrayOutOfBounds fired because of typographical error in array size
checking