Bug 845234 - Add null check in VectorImage's listener Cancel methods. r=dholbert