Fix case where options passed from page can be empty