fix assignment of weights/offset to formula env

only try to assign in `lFormula` if not missing
addresses #191
doesn't seem to break anything else