Reindent and check for item in remoteselect.js

Previous commits have broken the indentation in remoteselect.js

It turns out in remoteselect widget add method could be called with `null` as first argument.