Fix undefined error when urlState options is null