Add value check for all properties expecting any string

Since all JavaScript value can be converted to string no exceptions are
thrown.

Change-Id: I1b42eb1f6558755f114c042ba0546c4a5b99274b