crash fix, return null if visible mesh is null