[WINSPOOL] GetPrinterA(): Refactor failure handling (#2830)