fixed edge case of bad analyticsdatalayer