Proper handling of NULL values for edit widgets

 * Photo widget preserves NULL value
 * Web widget preserves NULL value
 * Attribute table can distinguish between 0 and NULL (Fix #11235)