fix comment parsing when whitespace

Should fix an issue where method parsing fails whenever xml comments are whitespace-only.