[qt-components] Do not attempt to open empty image path