jQuery > 1.6.2 doesn’t like undefined being passed to #attr().
Version 3.0.1.