Let qparent and qapplied work for detached HEAD

Let the command "git qparrent" and "git qapplied" work even when your are in a detached HEAD.
Ex:
  git checkout SOME_BRANCH^
  git qparrent
  git qapplied