50b37758d4
In a MPMD setup the app in the jdata can be NULL, so make sure we don't leave the main argument to an inconsistent value.