Fixes #284

Fixes  #284  
This appears to fix the problem that occurs when attempting to add a
mask to a displayobject that is added to a stage with a transparent
background.