QmlJSEditor: Remove redundant null test

Change-Id: I923fc58d1d7d305033584b33668915a6e7daba36
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>