JAL-2526 less stringent test for invalid cursor