Fix notice error in ResultSet.

When the originating table has no fields selected, a notice error should not be triggered.

Refs #5267