Fix #1401: Properly check if we have nodes present in localStorage