remove whitespace

Change-Id: I93caedfece5120c87d82ac4fa0c1e287cdc54edd
don't crash with possibly invalid index, fdo#76209

Change-Id: Idde31b2b07e27a1d9c91145516f8e78c638ce3b4