Added nil check for href attribute

Added nil check for href attribute in
remove_anchor_images_containing_url