I would imagine that in the general rush to repair her after Coral Sea, it was just forgotten about. Yes, it should have been put ashore as a potential fire hazard, but repairing the bomb damage would have been seen as far more important and mission critical. I'd tend to think that someone thought about putting it ashore, but just forgot about it in the 72 hours they had to fix the 'ol girl up before sailing.