Fix detection of elements in in-memory keytab code.