fix possible npe in yaml parameter completion #359