Add a safety net for invalid $entry parameter in formulize_writeEntry().