Check type of the value we extract from navigator.language before attempting string operation.

This is to work around a bug in the current webOS WebKit, but it doesn't hurt to be safe in any case.

Enyo-DCO-1.1-Signed-off-by: Gray Norton <gray.norton@lge.com>