Small bug fix with non-existent indexdb