This change is unrelated to the rest of the patch. I noticed an error in the logcat. Sometimes this function was being called when this._cameraObj was undefined.  Possibly because of my recent change (reviewed by Justin, I think) where I stop the camera stream while previewing images.