Fix typo that caused item lookups to report completion too early

Fix icon lookups reporting that they had completed before
they really had due to incorrect use of Array.splice()