Fixed the bug that 'null' string appears.

Fixed the bug that 'null' string appears before each 'div' generated.
(Thanks to Iaac)