getIdHandler(): added error and empty result checking
getIdHandler(): added error and empty result checking

iliyan-trifonov/notepads-nodejs-angularjs-mongodb-bootstrap,iliyan-trifonov/notepads-nodejs-angularjs-mongodb-bootstrap