Added check to ensure we weren't adding a title attr when we didn't originally have one