make behaviour of _MixtureDensityNetwork.get_error compatible with python implementation