I was searching around for the answer to this question. Didn't find one in any of the tutorial videos. Noticed this topic originated in 2015 so not sure the solution is posted elsewhere or common knowledge at this point, but had an epiphany and just tested something out and it worked. Here's how to do it:
Start with a photo; for the purposes of this explanation, one with a sky.
Make a selection. In this instance, the sky in the photo to make a sky replacement.
Turn that selection into a mask.
Select both the mask layer and the photo layer.
Group them.
The grouping is the trick. It allows the mask layer and the photo layer to remain separate from each other, which means they can be edited independently.
Hope this can be applied to the OP's question, even though their masking layer was a vector shape. Not sure it would matter.