[PATCH 5.1 096/155] platform/chrome: cros_ec_proto: check for NULL transfer function