Fixed the error bars for the phase.

Taking into account that they come from a substraction of two phases.
Now the program will stop if it finds negative betas in the initial or
final positions (which would make MADX crash)