Fix crash on empty response