when removing an object from localStorage the key didn't get removed if ...

...the passed parameter is of number type.

May be confusing if people switch to localStorage.