handling None data in moving averages