PreviewPane: remove redundant null check

Noticed by Findbugs.