autotitle: check for empty url, prevent heap ovverflow