LPS-44655 Use porlet.getContextName instead of portlet.getContextPath
LPS-44655 Update variable names and remove checks

Since we are not dealing with paths we should not check for starting
slashes anymore.
LPS-44655 Updated test to the new behaviour