filter None from detail_ids

http://manage.dimagi.com/default.asp?129063