Some extra checks to help prevent misuse of DOM apis in the insecure/buggy angular expressions