[ros-diffs] [gschneider] 42739: Only set the pattern function pointer if the pattern surface is valid, spotted by Amine Khaldi