ast: Add astMapDefined to check a keymap entry has a defined value

A bit different to to astMapHasKey...