Fixed bug 333891: [breakpoints] Breakpoint Undo doesn't handle duplicates

Signed-off-by: Sarika Sinha <sarika.sinha@in.ibm.com>
Fixed potential NPE.