Evaluate changed_when only if task is not skipped

Fixes #7405