Fix a server crash when a design document has no views, refs #202
Fix a server crash when a design document has no views, refs #202

frankrousseau/cozy-data-system,clochix/cozy-data-system,Gara64/cozy-data-system,cozy/cozy-data-system,nono/cozy-data-system