panorama: fixed accessing empty variable in pnp panel
avoid accessing null iframe
fixed problem with timeperiods in logcache database