PreviewPane: remove redundant null check

Noticed by Findbugs.
Merge pull request #650 from sbesson/rebased/dev_4_4/findbugs-fix

Java 1.7/Findbugs fixes (rebased onto dev_4_4)