ofz: check the stack for emptiness before accessing top
ofz: check the stack for emptiness before accessing top

Change-Id: Id5ea6837e9df2e823437f3e95031b5e22ce91979

LibreOffice/libabw,LibreOffice/libabw,LibreOffice/libabw