Fix ignore-but-retain bug: empty parent

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