more stringent checks for NULL params when writing filtering actions to a file