Added backward compatibility code for recent changes to work even with old submitted tasks.
Added backward compatibility code for recent changes to work even with old
submitted tasks.

inveniosoftware/invenio,tiborsimko/invenio,inveniosoftware/invenio,tiborsimko/invenio