!prop: Fix new_prop_id() when no props exist.

Signed-off-by: Martin Stone <martin@d7415.co.uk>
(cherry picked from commit 8c8ef276b9b943155f36ba8f0e3d5c1ff2b18e0d)