Fixing the case of a null list of repositories from window.localStorage