As per irc discussion with tomprince, wrapped 'getElementsByTagName' in
try and added code for storing in Step log file. Addresses log.err issue
in pull request comment