PMO-2728: fixed getParameterHoldersForFirstPeriod for nested paths and added test