Correctly redirect to settings page when not selecting cert file for upload

Fix #5463

@PVince81 @schiesbn @bantu