Fix crash deleting last track

Fixes #263
1 job for Applications/19.04 in 20 minutes and 55 seconds (queued for 7 minutes and 32 seconds)