Prevent segfaults when item ID > max ID in Equip menu

This prevents segfaults (<https://github.com/EasyRPG/Player/issues/337>),
but the items are still handled incorrectly. Currently, such items give the
user 999 stats, but in RPG_RT they are handled as no items.