Fix crash while loading config introduced by eeed3c55d82fc19e34fd78a188b4a5367923901b

Change-Id: Ia5957efe616defa4272501cd8f31d26d394077bb