Fix runtime error when unmarshalling json responses in the store module