You assume that the employer is responsible for instantly firing any employee who is found to be undocumented. This isn't actually the case. When this happens, a legal process is set in motion -- even foreigners are permitted due process under US law.
I'd also be willing to bet that his employer will continue to employ the writer even if he's deported to the Philippines, and that may have been one of the things that informed his decision to write this piece.