Correct message error when no transaction exists
Correct message error when no transaction exists

This is a boundary check. $result can be null therefore it must
be checked before returning its value.

bitpay/prestashop-plugin