Remove trailing whitespace, fix JSHint style issues

Enyo-DCO-1.1-Signed-Off-By: Ben Combee (ben.combee@palm.com)
Modify importProps to check for inProps existence before using it.

Enyo-DCO-1.1-Signed-Off-By: Ben Combee (ben.combee@palm.com)