Bug on Portlet validation

@hvelarde thank you, I didn't find the right documentation.