LPS-49711 LPS-48464 A is not defined in this function

Heya Nate,

This is a fix to a regression caused by https://issues.liferay.com/browse/LPS-48464.
It's causing lot's of jenkins test to fail, so it would be great if you can prioritize this.

Thanks!