Dead code in config.cpp

Remove useless check against itemname after having already checked whether it's empty.