Fixed JS error if 'createlink' is not enabled

There was error when initializing Pen without 'createlink'