[BZ107] Check if context is NULL in GET_CTX