Correct Content-Length from robots.php

The current calculation wasn't taking into account the line of dashes
output even when $text is empty.

Change-Id: Ia66cd1daf69209439cd7cd87368a85eaacda3e9a