Don't add nil as last request

Fixes #102

A command could yield a valid request but also nil so we need to check
that otherwise nil will be added as next request blowing up everything

I fixed this right aways because I think it's a pretty serious :bug: