Fix error when pressing delete in empty tag field

Pressing backspace in the tags input still calls the removeTag handler. This results in an exception when scope.model.tags was undefined. Now we check for a tag and the tags array before updating.