Fix bug when toggling visible property of graphic element with a mask
SDK-17891 - The bug occurs when the graphic element has a mask. We were not clearing the graphics object for the correct display object.
This problem has been fixed in both StrokedElement and BitmapGraphic.
QE Notes: Test graphicElement drawing
Doc Notes: N/A