Fixing long parameter logging in DbalLogger:startQuery

Added fallback to substr.

Unnecessary return removed