fixed 3 bugs

when a person selects a file but chooses to cancel, it still imports
hahaha.
also when a personel selects a file in generate payslips and cancels
null is chosen as the file.
last one is wrong extension doesn't output properly.