Fixed GSOD for patient report which also had referral

https://www.pivotaltracker.com/story/show/80044476