Fixed Error With null value in function productCostPriceAt(numeric,
timestamp)