Handle Base64 decoding errors

Signed-off-by: Lars Kiesow <lkiesow@uos.de>