I'm not sure humor is all that missing from modern sf. Look at shows like Warehouse 13, Eureka, Haven, and so on that feature lots of humorous situations, as well as plenty of snarky quips and banter.
And I'm don't think I've ever
written a Trek book that didn't have some (hopefully) funny dialogue in it . . . .