libsuspend: check for NULL autosuspend operations beforehand (cred linaro)

original author: Amit Pundir

Change-Id: Ibb89e5bc53d28599fd0737e7e75ddc5d5afcf2b7