Fixed case when panel defined in layout is empty.
Merge branch 'fix/undefinedLayout' into beta1