add .ycm_extra_conf.py
Fix segfault when invalid command issued.

First check if we actually find an entry inside the action map before
working on it further.
whitespace police