404 instead of 500 when accessing unknown forms in a bunch of places

Case:61165