Made marker calculations more robust
(refs #3702)