It's (apparently) not a bug Erik, just a byproduct of the current design. My understanding is that only the 'strokes' are project data, the generated mask data is cache data. If you invalidate the cache you lose the mask. That said, I only have v18 on my laptop for testing these things, so my experience with Object Mask workflows is minimal. My production machine is still running v17.
viewtopic.php?f=21&t=165470#p874607