More defensive code around rejectAll. closes #647