fix for app builder bug

http://manage.dimagi.com/default.asp?111475
Merge pull request #3320 from dimagi/app-builder-hotfix

fix for app builder bug