8039396: NPE when writing a class descriptor object to a custom ObjectOutputStreamReviewed-by: alanb