JARVIS-487 fixed an issue with incorrect AVG of nulls