Checks for addEventListener in constructor.