Buggy thermal zone trip index

Since trip point defined in thermal sysfs with temp=0 is not added
to the list as a valid trip, if cdev trip in sysfs points to such
invalid trip, it should be skipped, otherwise it causes crash.