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>
Logical correction.

Enyo-DCO-1.1-Signed-off-by: Blake Stephens <blake.stephens@lge.com>
Merge pull request #891 from enyojs/BHV-16293-blakestephens

BHV-16293: Added a check to verify there is content in a control before assuming its directionality.

Reviewed-By: Art Dahm (art.dahm@lge.com)
Integrated-By: Aaron Tam (aaron.tam@lge.com)