Added a check in so that if the xlsx file does not contain a 'network' or 'network_optimized_weights' sheet, it returns an error instead of crashing the server.