math.fish: exit if no output (e.g. from syntax error)

Closes #1175