Recognize safe assignment in condition (fixes #284)