check if values are actually false Bool objects before setting css class

fixes #1445