fix issue 10617 - contract with -profile -debug is not nothrow
Merge pull request #2516 from hpohl/10617

[REG2.064a] fix issue 10617 - contract with -profile -debug is not nothrow