clean up formatting and add liquid test for nil or blank on optimizly id
Merge pull request #358 from G5/analytics-optimizly-81810036

Properly handle nil OptimizlyId