only include details that actually exist

http://manage.dimagi.com/default.asp?124438#703432