Race condition where clientData$singletons can be NULL

Reproduced in Shiny Server load testing.

Code reviewed by @trestletech