Fixed check for empty jquery selection.