Fix possible crash when drawing empty pix or line PXS