It is better to set src to the empty string instead of null here.  Separate bug, but please fix it here.