Limits of validity for the Vavilov energy straggling calculation