Fix error with fromJust

Threw error when running fromJust on Nothing