Issue #1576300 by pwolanin: Fixed trim() expects parameter 1 to be string, array given in request_path() (line 2732 of bootstrap.inc).