Added try/catch to check if result set is empty. Resolves issue #87.