Too many redirects with Calls to Action installed?

We recently ran into a situation where a client was experiencing a site crash when the homepage was loaded that returned an error message stating that there was an infinite redirect loop.

Our solution was to add this bit of code to our client’s functions.php file found in their active theme:

Why this is happening?

We are not entirely sure but we have opened up an investigation here:

(Visited 304 time, 27 visit today)