LPS-37369 Portlet repository was not initialized

Hey Sergio,

This is a Knowledge base portlet bug, which was listed to be a problem when staging but actually it is not 100% related to staging. I'm sending this to you 'cause you wrote the class I'm modifying in this fix.

I've started to implement a test plugin as well, but I'll be honest: I have absolutely no idea how I supposed to do it :)

I got the information from @juliocamarero that a test plugin is needed and I should use the kaleo as a reference, but the thing is that the class I've changed are not included in a jar file like the services, so I wasn't sure what to do or how to test? I could copy over the compiled class file, or even the source file, but that's weird. Creating a service method just for testing also weird.

The fix itself is quite small though :)

Thanks,

Máté