Simplify select_one method.

The select_all method always returns ActiveRecord::Result instance,
and the ActiveRecord::Result includes Enumerable mixin.
If #empty?, #first method returns nil. Thus we can simplify this method.
Fix indentation.
Merge pull request #11579 from kennyj/refactor_20130724

Simplify select_one method.