Added _contentsWasSet for CALayer