Fix #874: Calling null.synchronized does not throw NPE/TypeError.

Also fix the fact that side-effects of the receiver were dropped.