SWC-1448: fix reference parser
prevent breaking the reference widget
Merge pull request #12 from jay-hodgson/develop

SWC-1448: fix reference widget