Don't crash on empty src attrs. Fixes [Bug 7243].