LPS-50644 Removes the first empty lines of the template