"Unnecessary" bugfix.

playlist.js should trim its input before testing length -- just in case.
list.php bugfix

Generating the contents of the playlist doesn't add an extra (empty) element.