Wormholes as a cure for black hole singularities