Fixes Bug 917025 - Resolves issue with rapid beta support on report/list.

@rhelmer r?

I'm not 100% comfortable without this having a test, but I'm unsure about how to write such a test. Suggestions are appreciated. Since this is a database-specific problem it may be difficult to write a test for at all, but I think we should try.