fixed 3-elements median for two None types