Sometimes a flush is issued without any url which causes an assertion crash. Credit goes to @singpolyma for the fix.