[v7] Uncaught TypeError: Cannot read property 'serial_no' of undefined

Getting the above error in console while creating a Delivery Note. Tried on beta.erpnext.com also.

https://github.com/frappe/erpnext/issues/5852