Timing issue with is_amp_endpoint()

Timing issue with is_amp_endpoint()