Fix crash on invalid key definitions
Fix crash on invalid key definitions

rlei/fastd-android,rlei/fastd-android,rlei/fastd-android,fpletz/fastd,rlei/fastd-android,fpletz/fastd,rlei/fastd-android,fpletz/fastd,fpletz/fastd,fpletz/fastd