Fixing bug where error does not appear if no screenshot was saved