fix exeption from localStorage.key() in old opera(12.16)

opera 12.16 throws exception from localStorage.key() if key doesn't exist