Bad arguments to select list item ["<!doctype"], [1]

Interesting, someone only recently had the exact same problem with the same google apps script: