Fix #2262 an unhandled exception due to a non-initialized variable read
Signed-off-by: Daniel L <daniel.liabeuf@gmail.com>