Accept NULL as base64 buffer