fixes phase view so it works if no active_phase is found

Resolves #686 

## Functional Review

Go to a competition with no phases active, it should only show the "First Phase" instead of the busted view.