Adding new test that reproduces IllegalArgumentException in #109.
Revert "Adding new test that reproduces IllegalArgumentException in #109."

This reverts commit 81a31bb368595b2bf43e763ed09229037d83318c.
Catch IllegalArgumentException, in case a local modification is not able to be applied.

Fixes #109.