Adds a check for the masterVolume being undefined

@kadst43 

masterVolume was undefined, so I added a check, and then added default value.  In initialize masterVolume is set to this.masterVolume which is probably the real source of the problem.  I'm not sure how this.masterVolume would have a value at that point.  Kevin, thoughts?