Fixed 'No data reader available. ' exception when scrolling using mouse and end of result set is reached.

Preparation for including comment in the statement tree structure