GTNPORTAL-3230: Add the check to the onload action list instead of overwriting the list.