Fix broken schedule detail view with query args

Small fix for a small bug but decided to put a test in for it and start
that process
Merge pull request #12 from DazWorrall/broken-schedule-view

Fix broken schedule detail view with query args