Bug fix: Failure handling in P2SH script decoding

Preventing a failure to decode from crashing the application.