Fix console warnings emitted if a function opened for editing contains empty lines.