Fixes for GSOD when there is no patient in an order

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