Prevent 500 error if cant detect branches for commit