Accept a useless extra integer argument for addItem (Fixes #1726)