On Maximum Likelihood Estimation in Randomly Stopped Diffusion-Type Processes