LPS-42107 Fix, if checking portlet mode with p_p_mode parameter, also  p_p_id has to be checked
LPS-42107 proposal fix for theme issue .. this commit is not tested yet