added better checks on bug existence and disable standard mantis TRIGGER ON ERROR for
BUG NOT EXIST condition