a null sequence was not being handled

Null was coming in for sequence when it was not specified in the app settings. I added a null check.