GetStartEnd: ignore empty lines when determining the indentation level