Fix for adjusted masks and BLOCKHAIR flag

Previously, masks' flags would be set to null when adjusted. This stops
the BLOCKHAIR flag from being removed from this process.

This means that removing a mask that has been adjusted will not result
in a lack of hair updating.

Fixes #5461