Clean up AttributeHandlers::get_attribute() for JSRef.
auto merge of #2491 : saneyuki/servo/attr, r=jdm