Fixed 404 handling in app generator.

Return 404 instead of 500 for show action on unknown resource id.

Signed-off-by: Magne Land <magne.land@appfolio.com>
Sure, done.