Cursor of 0 should also be treated as None.