Bug fix: Failure handling in P2SH script decoding

Preventing a failure to decode from crashing the application.
Merge pull request #124 from lornap/fixDangerousDecode

Bug fix: Failure handling in P2SH script decoding