Fix bug that exception is thrown after localStorage is cleared
Autocommit Fri Nov 21 08:40:10 EST 2014