LPS-41060 Fix regression

Hey Iliyan

This fixes a regression introduced by https://issues.liferay.com/browse/LPS-40551