Quantum effects, soft singularities and the fate of the universe in a braneworld cosmology