Fix display_errors issue in Pods AJAX

This fixes #2511