Fixed drupalgap_check_visibility() to properly iterate over multiple visibility rules for roles and/or pages.