LocalStorage: Added try/catch around setItem calls to address BlackBerry 10 issue (related to #4110)