Fix a potential hang when using pvbatch with a missing script or empty script
When provided a missing or empty script, pvbatch would hang as the satellite pvbatch would wait in the RMI loop while the main thread would not break their loop.
This fixes it by adding a specific case for this. also add a test.