Fix notice error in ResultSet.

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

Refs #5267
Add integration test for #5267
Merge pull request #5301 from cakephp/issue-5267

Fix notice error in ResultSet.