Fixes #4359

Fixes #4359 (http://dev.kohanaframework.org/issues/4359#note-4).

Sorry about the lack of unit tests. I didn't figure out how to run the coding standards' unit tests.

Thanks.