Added code to debug issue with develop version not working as expected. This refs #6577