remove redundant rctx != NULL check

Mark Andrews requested to merge 1991-cleanup-redundant-non-null-check-v9_16 into v9_16

(cherry picked from commit 2fa2dbd5)

Closes #1991 (closed)

Merge request reports