The solution is to not use legacy unsupported versions of nginx. Starting from version 1.3.15 (pretty old one), nginx does not log the 400 errors in such cases.
See changelog for information: http://nginx.org/en/CHANGES
*) Change: opening and closing a connection without sending any data in it is no longer logged to access_log with error code 400.