The Nexus 4 (as well as pretty much all smartphones on the market) disables the screen if you're in call and it detects that your face is near the screen. You can test this by going into a call and putting the palm of your hand (or any other surface) close to the phone.
If your phone doesn't do this you should either get it fixed or go join a league of super heroes.