TMDM-7434: fix debugging enviromnent issues and issues related to turning autorefresh off if portlets are unchecked