Fix NULL cases with new buffer options

It looks like this code was never tested. This should have been caught immediately by running tinywl.

Merge request reports