proposed fix for #6050

proposed fix for #6050

http://dev.jquery.com/ticket/6050

line 46 in attributes.js:

from:
  1. elem.className += " " + classNames[c];
to:
  1. elem.className += (elem.className === "" ? "" : " ") + classNames[c];

Leon