Hide fields in task, using a dictionary instead of False or -1.

@jone Otherwise there is an error caused in DiscussionTool (allowDiscussion returns a string):
ValueError: invalid literal for int() with base 10: ''