don't add empty <params/> element to <task/>

Bug: 999056
Change-Id: Ibaaaeb40a874991b0ad55e4e77a0640b5266c295