Removed possible SEGVs in rmpbc in case ePBC = No.