generalized change for nokogiri 1.5.6 to also work in 1.5.5
new helper method "safe_attr" to safely retrieve attributes[].value
or nil if the attr doesn't exist

Signed-off-by: Karsten Richter <kasi@kasi-net.org>