Fix error that occurs when branch is not provided
Fix error that occurs when branch is not provided

If there is no branch provided, nil is used. nil does not respond
to .empty?

Update the condition so that the value is converted to a string before
calling .empty?

lightster/pier-cli,lightster/pier-cli