Added null-style check, removed the always-added trailing `;`, removed duplicate `;` check, allowed for trimming spaces at the end of properties before the `;`, simplified effort that .trim() takes by directly cropping the leading space that will always exist.

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