Added null checking when converting setting details to conditions, to support nursery creation

Post commit code review : Daniel Jao