
Change I60c50a6c4 introduced a broken way of setting the visibility.
This commit fixes it as setting false in a string equals true in
javascript.
The check was also unneeded as it will be false by default (if not set).
Bug: Issue 10587
Change-Id: Ife40780f162d4eb5e3f75f4a6ed65f01aa7dc0e4
(cherry picked from commit b7b5cf0067
)