cause is a bug in QueryParserUtil, which determines whether the input string is a query or update by stripping the prolog and looking at the first clause (SELECT/CONSTRUCT/INSERT/etc.). The stripping method does not take comments into account.
fixed, just in time for 2.6.6 :)