Prevent resources generation when src is empty