Only set placeholder if an input is empty

Fixes bug where existing input values were overwritten