webservices/tests: Don't crash when array is not allocated