Check for null context along with null context id.