Fix display condition consisting of spaces only

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