Check slots are valid while moving

In some situations (mostly involving mods) slots can be visible to
invtweaks but unusable. While the ModCompatiblity layer should avoid
registering these slots, mods can be volatile so this is an extra layer
of protection to avoid infinite loops.
Merge branch 'move-mod-compat' into forge