Bug #1370666

Handle undefined error