Allow fetching of next exercise when you have hibernating submissions

Here's my attempt at fixing #1393 .