Working around a bug an write operations where the thrown exception is inconsistent based on whether write commands or opcodes are used.