Make field expression widget work even without a layer (needed in composer)