Reset cursor resource to null instead of variant