Fix submodule merge script

Submodules that have no changes actually show up with space in front of
the sha-1 which would mess up the logic when splitting by spaces.

Change-Id: I15506c6e3780efb29d885ff456ecfac60526c03d
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>