Check for cursor closed.

The framework became stricter in MR0, so even though this is a rare
issue it could still crash our app. This CL should take care of that

Bug:5449584
Change-Id: I7f5bb5042e49bd713967ef9e01947cd6d4fdb487
1 file changed