Correct merging of multiple IndexUpdate objects

The object can already exist, so we need to update source flag if
needed.

Signed-off-by: Michal Čihař <michal@cihar.com>