fix behavior when child-case repeats are used with case sharing

fixes: http://manage.dimagi.com/default.asp?73611