NullPointer bug fix proposal

I costantly receive this report on my app bug trace:

NullPointerException (@RichMediaActivity:onDestroy:928) {main}

Hopefully this will fix this bug.