OSX: Fixed bugs in WaveFormControl and WaveFormRenderingService.

- WaveFormControl: Fixed bug where the tiles wouldn't be drawn sometimes
when the bitmaps were invalidated.
- WaveFormRenderingSerive: Fixed bug where the last tile would have an
empty bitmap.