Fix context string for subkey validity
(cherry picked from commit 562baeb340b10f0f83e79d374f1ba12040797a93)