Thank you, thank you, thank you so much!
I had the same problem, and did what many of you did, i.e. delete the blank lines at the end of the functions.php file.
I had added a function to the file, and then decided to delete that function, and I think it was then that the blank lines got in the document, but I would have never been able to guess that was the problem by myself!