Only execute history commands with something to run