Fixes crash on invalid req method.