Music player sometimes skips all songs and won't play

This appears to be a bug that was fixed in iOS 10.3. My Music app started behaving as expected after I updated my iPhone.