Changed repository method to look for any undeleted nodes, as two unpublished nodes could conflict accidentally