check null instead of undefined in breakpoint init. Fixes #2