Updated new products block service query

Refactored the query so that new products block outputs only master products and takes into account products without variations.