Again, if olPreviewLayer is undefined, then line 1164 will fail before this.