Added workaround for PR commits (without a branch) in webhook