Fixed error in check for an existing site id