Fixed the check used to decide if it the given view id is from an action item or a simple view.