[IZPACK-1072] Unset dynamic variables if they cannot be validated any longer for some reason - post-fix

After some extensive tests with more complex installers we found still implementation errors.
Looks fine for us now.
Added also a unit test for the changes.