Null safe content type comparison