Remove ineffective writeObject(null) call