Update availability.js

Fix uncaught exception in availability widget (when localstorage is empty).