Avoid NPE when panel is not available
Merge pull request #35 from janodvarko/master

Avoid NPE when panel is not available