Typescript-backbone: do not create item on empty input

This fix was missing for #919.
i don't know typescript, but if possible `==` => `===`