LPS-39241 Default portlet preferences does not mean we do not want to publish them, changing query to include portlets with default prefs
LPS-39241 Fixing finder - when the preferences are being included the finder does not replace the appropriate part in the SQL. The CustomSQLUtil contains the [$PORTLET_PREFERENCES_PREFERENCES_DEFAULT$] keyword translated so the replace does not replace anything.
LPS-39241 Passing the correct plid to the method instead of relying on the default -1 value
LPS-39241 Extending test cases for current bug fix
LPS-39241 Came across this while writing previous tests - fixing handling of service context in test class