Fix a crash in pokemon_form_image.

Don't crash when called on a form with no pokemon_form_generations.
404 instead of crashing for non-existent media.

Doesn't affect production (because nginx serves media). I was just tired
of seeing spurious tracebacks.