Modifications to avoid empty posts in Safari browser