Fixed endless loop occurring during page building of failed API call