prevent possible NullPointerException in reset().
Authored by: mrieser 2010-06-03
Parent: [r11703]
Child: [r11705]