Fixed XM envelope reading to gracefully handle nodes which are out of range