Fix 404 error of "/photos/undefined.jpg". (view template bug)