Fix for the segfault with WMS TIME patterns (#3795)
Merge branch 'branch-6-2'