fix 500 on cases with children that have no opened_on

A low effort fix to http://manage.dimagi.com/default.asp?114902