Re #1108 Several bugfixes preventing database errors resulting in empty
responses...