Handling nil app ids

Signed-off-by: Johannes Tuchscherer <jtuchscherer@pivotallabs.com>