configParser: Fix infinite loop