Some empty items appears in Action button dropdown in Sales Order screen

We have implemented a workflow in sales order doctype. When select any record which is in submit mode (docStatus = 1), some empty action items appears under action button drop-down as shown below. We checked the code but couldn’t identify the issue. Does anyone have any idea about the issue or faced this issue earlier?


We are using following version of ERPNext and Frappe:

ERPNext: v14.16.1
Frappe Framework: v14.25.4