Fixed a bug where 'undefined' was inserted if the code had comments but no inital code