Additional details special case

Showing additional details was failing when the results had a mixture of nested and non-nested attributes.
It was trying to compare a string and nil. This fixes that by weeding out the nils first.

Fixes https://tickets.puppetlabs.com/browse/RAZOR-270