Check if cursor is closed.

The rest of the class already checks the state of the cursor so this is
consistent with how the rest of the code behaves.

Bug: 7490630
Change-Id: I17321a651aa28814d0036d468b987ed9cfed9563
1 file changed