IF the result set is 0, mongodb throws an exception