I added a check to the identify call in base.html as well so no errors are thrown.