[DROOLS-180] fix NPE when trying to add the same resource twice