Avoid a null reference except when collider is missing.