Adjust DeleteCategoryDialog

Also check if the category has items so the dialog will not be necessary
appear.(Money Database method CategoryHasItems())