Update algorithms.py

There was a condition where median_absolute_deviation returned nothing and caused it to flag as anomalous even though it passed the test.