fix a NullPointerException when copying a PointInDirectionBrick which value contains a SensorValue