An Existence Theorem for a Class of Infinite Horizon Optimal Control Problems