Fixed possible NPE if cancellation not enabled under JellyBean.