content-type is nullable handle null case, add assert to make IDEA shut-up