Fixed error where mail() returns a single empty message when it should return nothing