Prevent task uploading with name > 255 characters.

This is not a 'fix' per se, but a follow up to the
fix for BZ# 915549.

Bug: 915549
Change-Id: I13447acaa7c4784ce7704067f8a94ad248f795cb