Fix mark_old_as_done crash when MARK_AS_DONE property returns NULL.

Signed-off-by: Niko Rosvall <niko@ideabyte.net>