do not create empty sourcemaps or add mapping comments on to empty files. Also fix empty files from having a newline in them. fixes #1491