fix(plug-in): correctly check whether source-map exists

This commit ensures we do not throw an exception when a bundle contains no
files (and this the source-map is null)