Prevent invalid empty id