Avoid npe when workbench is not yet open.