Fix a null dereference

Thanks @Oppen for spotting it

Fixes lxde/lxde-qt#69