Guard against 'undefined' image src