Fixed issue with fetchAll returning null entries when garbage collection collects objects.