Fixed improper checks on GL account deletion.