Safety devices for preventing passengers from being injured by movements of doors or variations in air pressure