Moving Base64 decode error into a rescue from

Also making sure that the decode will fail.