Handle NoSuchElementException on ConfigurationMap entry set iterator next()

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>