Bug #582: Added check if node.value isn't a string just exit
Added new test for fix to #582 (fixes 582)
Added curly braces to if statment
Added test for bug fix #582. Test Passes
Merge pull request #583 from SamuelEnglard/master

Added check if node.value isn't a string just exit (fixes #582)