Fix bugs in cloud function
Fix bugs in cloud function

GoogleCloudPlatform/woolaroo-language-learning-app,GoogleCloudPlatform/woolaroo-language-learning-app,GoogleCloudPlatform/woolaroo-language-learning-app,GoogleCloudPlatform/woolaroo-language-learning-app,GoogleCloudPlatform/woolaroo-language-learning-app