Catching exceptions in findOne of head.js