Fix unauthorized Package view
getRawText is not available for anonymous users
This refs #4837