This serves no other purpose than to cause a minor inconvenience simply because another individual wanted it.
If you want night time to be more of a challenge then go the entire night without ever using beds, not have big brother Mojang step in and impose it on everyone. Some people don't want this feature as much as you do, and they want to skip the night so they can continue their building without being pestered and without having to switch difficulty modes.
The word "mod" is in the thread title...
I tried the mod, but was not attacked while I slept outside (one night).
I'm going to start a new game with cheats enabled so I can accelerate to nightfall in order to test it out more thoroughly.