Fixed stratomex crashing when assigning stratification with no data
(fixed #1418)