This issue can also occur if you don't have right permission under /conf/<root>/settings/wcm/templates/rep:policy. If, for some reason, e.g. putting package from other instance without right AC handling or deletion of rep:policy in repository etc., the rep:policy node is removed or permission to eve...