Fixed bug with nil workbooks.