I have a custom control which contains a view which be searched by passing in a value in the ?search parameter. In most cases everything works as expected. However, some results contain a single undefined viewEntry. This always appears as the last entry on the first page regardless of the number of results returned. The same search in the Notes client doesn't show any empty documents, nor are there any conflicts in the database.
I've managed to work around the error by checking for typeof viewEntry == undefined but would like to get to the bottom of why this is happening.