intellidemand: add bug fixes

 - Fix crash input event handler on governor switch
 - Fix panic when setting sampling rate

Change-Id: I9840411b70a13c812f47966c3e807f5c24b4b211
Signed-off-by: faux123 <reioux@gmail.com>