BHV-16293: Added a check to verify there is content in a control before assuming its directionality. + Misc whitespace cleanup.
BHV-16293: Added a check to verify there is content in a control before assuming its directionality.
+ Misc whitespace cleanup.

Enyo-DCO-1.1-Signed-off-by: Blake Stephens <blake.stephens@lge.com>

kustomzone/enyo,wikieswan/enyo,PKRoma/enyo,enyojs/enyo,wikieswan/enyo,bright-sparks/enyo,mcanthony/enyo,beni55/enyo,kustomzone/enyo,soapdog/enyo,enyojs/enyo,PKRoma/enyo,mcanthony/enyo,bright-sparks/enyo,soapdog/enyo,zefsolutions/enyo,beni55/enyo,zefsolutions/enyo