Throw exception if app does not exist with specified id