protect against null dock in plugin creator