Change localstorage support check to what modernizer uses.