Alarm sounds briefly and stops after half a second with Android 4.1.2 Jelly Bean


I found this after a recent upgrade to Android 4.1.2 Jelly Bean on my phone.
To get this working again I had to delete my existing alarms and then:

Settings > Application Manager
Select the All tab
Locate and select Clock
Click on Clear data and then Clear cache
Go back into the Clock application, re-create the alarms and test