Added support for hidden apps (bug 1019249, 1019251)

Good catch. This must have been a bad merge.