Fixed an error which would occur if neither a resource nor path were
specified.