Ultrafast nucleobase photoprotection probed by soft x-rays