Issue #1651240 by greggles: avoid WD php: PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'user_agent' cannot be null: INSERT INT