Avoid error when label has no matching element

$('#no_such_element').data("select2") returns null rather than
undefined (jQuery 1.9.0).
Merge pull request #736 from tamias/label_no_element

Avoid error when label has no matching element