test/rilmodem: Fix serial number check

Only compare to the emulator's hard-coded serial number when
the '--emulator' argument is given, not when testing in real
hardware.