FACES-1749 HeadResource throws NullPointerException for resource types other than <link> and <script>