Prevent NPE on empty docs

I thought I fixed that one already..
Bump!
Hide empty Related and Examples sections
Identity not first
Add visual breaks back