intellidemand: add bug fixes

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

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