Fixed check of 22 items limit on Altar of Sacrifice

This fix part of issue 558