Check if result is set before trying to delete property.