null safe content type

fixes #60