Fixing #3641 (loop in e_contextually, introduced in r16525).