kappa: Fix AST error if sub-keymap does not exist

For instance if name="fred.fred" an "invalid object pointer" error
was previously reported by AST.