Fixed bug with checking maximum durability of mod items. Fixes #1634