Added null check in confirmation dialog create method. Closes #782.