Fixed subcaption incompatibility error message.

This is a hotfix for the latex package subcaption that seems to be
incompatible with beamer or caption.