Changed getApplicationInstances() return null instead of empty list when app has not finished staging.