Fix getting task on-* properties

Fixes: Bug #1288227

Change-Id: I46680abe82c86e6b40b7f0274ad40f8c6cc250ef