Check bulkDeleteDocsCollection in cleanup

The createsViews test would occasionally fail due to this line. I think
what was happening was that the page load DOM was ready prior to the
API data being loaded, so the cleanup function ran before there was
any data in bulkDeleteDocsCollection.