bug 512: Fix a problem causing blank result pages