cascade: guard against null inputs

Signed-off-by: Sergei Ianovich <ynvich@gmail.com>
i-8042: fix input index

Signed-off-by: Sergei Ianovich <ynvich@gmail.com>
t3007: better logging

Signed-off-by: Sergei Ianovich <ynvich@gmail.com>