don't loop forever on an invalid options string (issue #5629)