Get unpublished and published references in a save way - the may be removed.
Merge pull request #13 from 4teamwork/mle-fix-constraints-inextisting-refs

Get unpublished and published references in a save way - the may be removed