fixed crash when href/src empty
Merge pull request #19 from yanni4night/master

fixed crash when href/src empty